import request from '@/utils/request'

// 查询业务员列表
export function listTsm(query) {
  return request({
    url: '/system/tsm/list',
    method: 'get',
    params: query
  })
}

// 查询业务员详细
export function getTsm(smId) {
  return request({
    url: '/system/tsm/info/' + smId,
    method: 'get'
  })
}

// 新增业务员
export function addTsm(data) {
  return request({
    url: '/system/tsm/add',
    method: 'post',
    data: data
  })
}

// 修改业务员
export function updateTsm(data) {
  return request({
    url: '/system/tsm/update',
    method: 'put',
    data: data
  })
}

// 删除业务员
export function delTsm(smId) {
  return request({
    url: '/system/tsm/delete/' + smId,
    method: 'delete'
  })
}
